import { PaginationConfig } from '@/types';
import { InventoryHistory as InventoryHistoryEntity } from '@/entity/InventoryHistory';

export type CreateInventoryHistoryRequest = Pick<
  InventoryHistoryEntity,
  | 'brandId'
  | 'customerId'
  | 'description'
  | 'price'
  | 'type'
  | 'nub'
  | 'marketPrice'
>;

export type UpdateInventoryHistoryRequest = Pick<
  InventoryHistoryEntity,
  'id' | 'customerId' | 'description' | 'price' | 'type' | 'nub' | 'marketPrice'
>;

export type GetBrandsRequest = Partial<
  Pick<InventoryHistoryEntity, 'brandId' | 'id' | 'type'>
> &
  PaginationConfig & {
    createStartTime: number;
    createEndTime: number;
    sortField?: 'createTime';
    sortType?: 'DESC' | 'ASC';
  };
